<!DOCTYPE html>
<html>

<head>
    <meta charset="UTF-8">
    <title>管理员列表-WeAdmin Frame型后台管理系统-WeAdmin 1.0</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport"
          content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <link rel="stylesheet" href="../../css/font.css">
    <link rel="stylesheet" href="../../css/weadmin.css">
    <!-- 让IE8/9支持媒体查询，从而兼容栅格 -->
    <!--[if lt IE 9]>
    <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
    <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
</head>

<body>
<div class="weadmin-nav">
			<span class="layui-breadcrumb">
        <a href="">首页</a>
				<a href="">分类管理</a>
        <a>

          <cite>分类列表</cite></a>
      </span>
    <a class="layui-btn layui-btn-sm" style="line-height:1.6em;margin-top:3px;float:right"
       href="javascript:location.replace(location.href);" title="刷新">
        <i class="layui-icon" style="line-height:30px">ဂ</i></a>
</div>
<div class="weadmin-body">
    <table class="layui-table" id="demo" lay-filter="test">
    </table>
</div>
<script src="../../lib/layui/layui.js" charset="utf-8"></script>
<script src="../../js/eleDel.js" type="text/javascript" charset="utf-8"></script>
</body>
<script type="text/html" id="updateTime">
    <div>
        {{# if(d.updateTime!=null){ }}
        {{layui.util.toDateString(d.updateTime, 'yyyy-MM-dd HH:mm:ss')}}
        {{# }else{ }}
        无数据
        {{# } }}
    </div>
</script>
<script>
    layui.use(['jquery', 'util', 'table'], function () {
        var $ = layui.jquery,
            table = layui.table;
        table.render({
            elem: '#demo'
            , url: '/courseList' //数据接口
            , page: true//开启分页
            , method: "post"
            , request: {
                pageName: 'pages' //页码的参数名称，默认：page
                , limitName: 'pageSize' //每页数据量的参数名，默认：limit
            }
            , cols: [[ //表头
                {field: 'id', title: 'ID', width: "50"}
                , {field: 'title', title: '标题', width: "200"}
                , {field: 'imgUrl', title: '图片', width: "150"}
                , {
                    field: 'createTime',
                    title: '创建时间',
                    width: "200",
                    templet: " <div>{{layui.util.toDateString(d.createTime, 'yyyy-MM-dd HH:mm:ss')}}</div>"
                }
                , {
                    field: 'updateTime',
                    title: '更新时间',
                    width: "200",
                    templet: "#updateTime"
                }
            ]]
        });
    })
</script>

</html>